import request from '@/utils/request'

// 获取列表
export function getMemberIndex(params) {
  return request({
    url: '/manage/user/memberIndex',
    method: 'get',
    params
  })
}

export function memberAdd(data) {
  return request({
    url: '/manage/user/memberAdd',
    method: 'post',
    data
  })
}

export function memberEdit(data) {
  return request({
    url: '/manage/user/memberEdit',
    method: 'post',
    data
  })
}

export function userPay(data) {
  return request({
    url: '/manage/user/userPay',
    method: 'post',
    data
  })
}





// 获取渠道列表
export function ditchIndex(params) {
  return request({
    url: '/manage/user/ditchIndex',
    method: 'get',
    params
  })
}


// 渠道添加
export function ditchAdd(data) {
  return request({
    url: '/manage/user/ditchAdd',
    method: 'post',
    data
  })
}

export function ditchEdit(data) {
  return request({
    url: '/manage/user/ditchEdit',
    method: 'post',
    data
  })
}


export function ditchLevelEdit(data) {
  return request({
    url: '/manage/user/ditchLevelEdit',
    method: 'post',
    data
  })
}

export function ditchDel(data) {
  return request({
    url: '/manage/user/ditchDel',
    method: 'post',
    data
  })
}

export function getMemberToken(params) {
  return request({
    url: '/manage/index/getMemberToken',
    method: 'get',
    params
  })
}

export function memberIndexExport(params) {
  return request({
      url: '/manage/user/memberIndexExport',
      method: 'get',
      params
  })
}

// 会员等级
export function scoreIndexPage(params) {
  return request({
      url: '/manage/user/scoreIndex',
      method: 'get',
      params
  })
}

// 添加
export function scoreAdd(data) {
  return request({
    url: '/manage/user/scoreAdd',
    method: 'post',
    data
  })
}

// 修改
export function scoreEdit(data) {
  return request({
    url: '/manage/user/scoreEdit',
    method: 'post',
    data
  })
}

// 删除
export function scoreDel(data) {
  return request({
    url: '/manage/user/scoreDel',
    method: 'post',
    data
  })
}

export function scoreIndex(params) {
  return request({
      url: '/manage/user/scoreIndex',
      method: 'get',
      params
  })
}

